package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * InterestInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "interestInfo", catalog = "smartsofa")
public class InterestInfo implements java.io.Serializable {

	// Fields

	private Integer interestId;
	private Integer userId;
	private String interestName;
	private float interestWeight;
	private short isChannel;
	private Timestamp createTime;
	private Timestamp modifyTime;

	// Constructors

	/** default constructor */
	public InterestInfo() {
	}

	/** full constructor */
	public InterestInfo(Integer userId, String interestName,
			float interestWeight, short isChannel, Timestamp createTime,
			Timestamp modifyTime) {
		this.userId = userId;
		this.interestName = interestName;
		this.interestWeight = interestWeight;
		this.isChannel = isChannel;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "interestId", unique = true, nullable = false)
	public Integer getInterestId() {
		return this.interestId;
	}

	public void setInterestId(Integer interestId) {
		this.interestId = interestId;
	}

	@Column(name = "userId")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "interestName", length = 200)
	public String getInterestName() {
		return this.interestName;
	}

	public void setInterestName(String interestName) {
		this.interestName = interestName;
	}

	@Column(name = "interestWeight", precision = 5, scale = 3)
	public float getInterestWeight() {
		return this.interestWeight;
	}

	public void setInterestWeight(float interestWeight) {
		this.interestWeight = interestWeight;
	}

	@Column(name = "isChannel")
	public short getIsChannel() {
		return this.isChannel;
	}

	public void setIsChannel(short isChannel) {
		this.isChannel = isChannel;
	}

	@Column(name = "createTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "modifyTime", length = 19)
	public Timestamp getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}

}